package com.term.appadmin.pojo.view.company;

import com.term.appadmin.pojo.query.company.CompanyListQuery;
import com.term.appadmin.pojo.view.BaseListView;
import com.term.domain.Company;
import com.term.domain.utils.DomainPage;

/**
 * Created by chenGang on 2017/1/24.
 */
public class CompanyListView extends BaseListView<CompanyElementView> {

    public CompanyListView() {

    }

    public CompanyListView(DomainPage<Company> domainPage, CompanyListQuery query) {
        super(domainPage,query);
        domainPage.getDomains().stream().forEach(company -> this.subViews.add(new CompanyElementView(company)));
    }
}
